<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<link rel="stylesheet" href="../../../bangnuo/admin/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="../../../bangnuo/admin/style/admin.css" media="all">
	</head>

	<body>
		<form class="layui-form" action="">
			<div class="layui-form-item">
				<label class="layui-form-label">门头照</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureDoor"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">店内照</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureStore"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">收银台照</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureCheckstand"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">身份证照（正）</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureCardPositive"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">身份证照（反）</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureCardReverse"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">手持身份证照</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureHandheld"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">银行卡照</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureBank"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">营业执照</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureBusiness"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			
			<div class="layui-form-item">
				<label class="layui-form-label">资质许可证</label>
				<div class="layui-input-block">
					<button type="button" class="layui-btn" id="permissionsPictureQualification"><i class="layui-icon">&#xe67c;</i>上传图片 </button>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" lay-submit lay-filter="qualification-form">立即提交</button>
				</div>
			</div>
		</form>
	</body>
	<script src="../../../bangnuo/admin/layui/layui.js"></script>
	<script type="text/javascript">
		layui.use(['form', 'upload'], function() {
			var form = layui.form,
				upload = layui.upload;
			//监听提交
			form.on('submit(qualification-form)', function(data) {
				layer.msg(JSON.stringify(data.field));
				return false;
			});
			
			var uploadInst = upload.render({
				elem: '#permissionsPictureDoor' //绑定元素
					,
				url: 'http://192.168.101.93:2610/PermissionsPicture/a' //上传接口
					,
				done: function(res) {

				},
				error: function() {
					
				}
			});
		});
	</script>

</html>